﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="gbook.aspx.cs" Inherits="gbook" %>
<%@ Register Src="~/UIControls/WUC_Tag.ascx" TagName="WUC_Tag" TagPrefix="uc1" %>
<%@ Register Src="~/UIControls/ProSplitPage.ascx" TagName="ProSplitPage" TagPrefix="uc1" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>留言板浏览</title>
<link href="img/style.css" type="text/css" rel="stylesheet">
<link href="css/main.css" type="text/css" rel="stylesheet">
<style>
<!--
.page {
 	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	font-variant: normal;
	color: #000;
	text-decoration: none;
}
a:link.page {
	color: #333;
	text-decoration: none;
}
-->
</style>

</head>

<body style="background-image: url('img/bg__.gif')">
<form id="form1" runat="server">

<div style="width: 777px;background-color:#ffffff;">
<div id="middle" style="MARGIN-TOP: 5px; width:773px;">
  
  
  <uc1:WUC_Tag runat="server" TagName="顶部导航"></uc1:WUC_Tag>
  
  
<table border="0" width="100%" cellspacing="1" style="border-collapse: collapse">
<tr>
<td height="3"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="772" height="400">
<tr valign="top">
<td style="PADDING-RIGHT: 5px" width="180" height="400">
<div style="width: 188px; height: 400px">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="ml"></td>
<td class="mm"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" id="table12">
<tr>
<td height="180">
<table cellspacing="0" cellpadding="0" width="188" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="188" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="ml"></td>
<td class="mm">
<table cellspacing="0" cellpadding="0" width="180" align="center" border="0" id="table15">
<tr>
<td class="introbg" valign="top" align="middle">
<table class="introFont01" cellspacing="0" cellpadding="0" width="180" border="0" id="table16">
<tr>
<td valign="top" align="center">
<table border="0" width="100%" style="border-collapse: collapse" cellpadding="0">
<tr>
<td>
<img border="0" src="img/tesjy.jpg" width="179" height="58"></td>
</tr>
<tr>
<td width="179">
<table width="100%" cellspacing="0" style="border-collapse: collapse; border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" cellpadding="0">
<tr>
<td height="30">
<table cellspacing="0" cellpadding="0" width="170" align="center" border="0" height="173">
<tr>
<td align="middle">


<table cellspacing="0" cellpadding="0" width="100%" border="0" style="width: 96%" height="212">

<uc1:WUC_Tag id="WUC_Tag1" runat="server" TagName="栏目导航"  ValueQuerys="FromClass=0|2"></uc1:WUC_Tag>

<tr>
<td align="left" height="22" bgcolor="#FFFFFF">　</td>
</tr>
</table>




</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="mr" width="1">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="bl"></td>
<td class="bm">　</td>
<td class="br"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="mr" width="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td>
<table style="WIDTH: 580px; BORDER-COLLAPSE: collapse" cellpadding="0" border="0">
<tr>
<td class="alignTop" style="WIDTH: 50%">
<div>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="tl">
<img border="0" src="img/gbook_.jpg" width="578" height="36"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table class="introFont01" cellspacing="0" cellpadding="0" width="570" border="0">
<tr>
<td>　</td>
</tr>
<tr>
<td valign="top" align="left">



<!-- 列表 start -->

<div style="text-align:center;">
    留言人名称：<asp:TextBox ID="txt_msgkeyword" runat="server"></asp:TextBox>&nbsp;
    <input type="button" value="过滤" onclick="MessageSearchEvent();" id="Button1" />


<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td>　</td>
</tr>
<tr>
<td bgcolor="#add47b" height="1">
<img height="1" src="img/sp.gif" width="1"></td>
</tr>
<tr>
<td>　</td>
</tr>
</table>


</div>

	<!-- 重复区 start -->
	<asp:Repeater ID="repeater1" Runat="server">
		<ItemTemplate>
		
		
		<div>
		留言者：<asp:Literal runat="server" Text='<%# Eval("MsgName") %>'></asp:Literal>
		联系方式：<asp:Literal runat="server" Text='<%# Eval("Relation") %>'></asp:Literal>
		电子邮件：<asp:Literal runat="server" Text='<%# Eval("Email") %>'></asp:Literal>
		留言日期：<asp:Literal runat="server" Text='<%# Eval("PubDate") %>'></asp:Literal>
		</div>
		
		<table class="font01" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid" cellspacing="2" cellpadding="0" width="100%" bgcolor="#fffff7" border="0" height="179">
<tr>
<td valign="center" align="right" width="18%" height="25">
<strong><font color="#cc3300">留言主题：</font></strong></td>
<td class="font01" height="25" width="80%">

<asp:Literal runat="server" Text='<%# Eval("Title") %>'></asp:Literal>

</td>
</tr>
<tr>
<td valign="center" align="right" width="18%" height="25">
<strong><font color="#cc3300">留言内容：</font></strong></td>
<td class="font01" height="25" width="80%">

<asp:Literal runat="server" Text='<%# Eval("Content") %>'></asp:Literal>

</td>
</tr>
<tr>
<td valign="center" align="right" width="98%" colspan="2" height="3"></td>
</tr>
<tr>
<td valign="center"  colspan="2">
<img border="0" src="img/sigline.gif"></td>
</tr>
<tr>
<td colspan="2">

<div>
		回复人：<asp:Literal runat="server" Text='<%# Eval("ReplyObject") %>'></asp:Literal>
		回复日期：<asp:Literal runat="server" Text='<%# Eval("ReplyDate") %>'></asp:Literal>
		</div>

</td>
</tr>
<tr>
<td valign="center" align="right" width="18%">　</td>
<td valign="top" align="left" width="80%"><font color="#026DA9">

<asp:Literal runat="server" Text='<%# Eval("ReplyContent") %>'></asp:Literal>

</font></td>
</tr>
</table>

<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td>　</td>
</tr>
<tr>
<td bgcolor="#add47b" height="1">
<img height="1" src="img/sp.gif" width="1"></td>
</tr>
<tr>
<td>　</td>
</tr>
</table>
		
		
		
		
		
		
		
		</ItemTemplate>
	</asp:Repeater>
	<!-- 重复区 end -->


<!-- 分页控件 start -->
<div style="text-align:right;"><uc1:ProSplitPage ID="ProSplitPage1" runat="server" MaxRows="10" SplitType="NumberBound" /></div>
<!-- 分页控件 end -->

<!-- 列表 end -->









<table class="font01" cellspacing="0" cellpadding="0" width="100%" border="0" height="296">

<tr>
<td valign="center" align="right" width="100" height="25">
<strong><font color="#cc3300">留言主题：</font></strong></td>
<td valign="center" align="left" height="25">

<asp:TextBox ID="txt_Title" runat="server"></asp:TextBox>

*</td>
</tr>
<tr>
<td valign="center" align="right" width="100" height="25">
<strong><font color="#cc3300">留言姓名：</font></strong></td>
<td valign="center" align="left" height="25">

<asp:TextBox ID="txt_MsgName" runat="server"></asp:TextBox>

*</td>
</tr>
<tr>
<td valign="center" align="right" width="100" height="25">
<strong><font color="#cc3300">联系方式：</font></strong></td>
<td valign="center" align="left" height="25">

			<asp:TextBox ID="txt_Relation" runat="server"></asp:TextBox>

*</td>
</tr>
<tr>
<td valign="center" align="right" width="100" height="25">
<strong><font color="#cc3300">E-mail：</font></strong></td>
<td valign="center" align="left" height="25">

<asp:TextBox ID="txt_Email" runat="server"></asp:TextBox>

</td>
</tr>
<tr>
<td valign="center" align="right" width="100" height="153">
<strong><font color="#cc3300">留言内容：</font></strong></td>
<td valign="center" align="left" height="153">


<asp:TextBox ID="txt_Content" runat="server" Height="153" TextMode="MultiLine" Width="100%"></asp:TextBox>


</td>
</tr>
<tr>
<td valign="center" align="middle" colspan="2" height="43">

    <asp:ImageButton ID="btn_ok" runat="server" ImageUrl="img/btn_ok.gif" OnClick="btn_ok_Click" />

</td>
</tr>

</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<uc1:WUC_Tag runat="server" TagName="底部版权"></uc1:WUC_Tag>
</div>






</form>
</body>
</html>
<script type="text/javascript">
function MessageSearchEvent(URL)
{
	if(typeof(URL) == 'undefined') { URL = ''; }
	location = URL + "?KeyWord=" + escape( document.getElementById('txt_msgkeyword').value );
}




//搜索事件
function SearchEvent(_fromclass, _keyword, _fromid)
{
  //参数常量
  //参数成员(默认值)
var KeyWord = '';  //关键词
var FromID = '1=1';	//文章所属二级栏目
var FromClass = 'FromClass=0';	//二级栏目导航

  var tacolumn = 'ta.FromID=';
  if(_fromclass != null) 
  { 
      if(_fromclass == 0) 
	  { 
	      _fromclass = _fromid; 
		  tacolumn = 'tc.FromClass=';	//大类搜索
	  }
      FromClass = 'FromClass=' + _fromclass; 
  }
  if(_keyword != null) { KeyWord = _keyword; }
  if(_fromid != null) { FromID = tacolumn + _fromid; }

  //组合参数(结构路径 + 关键词)
  var parameters = escape( KeyWord + "," + FromID + "," + FromClass );
  //alert(parameters);
  location = "News.aspx?parameters=" + parameters;
}
</script>